<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="stylesheet" href="./../../static/admin/lib/editmd/css/style.css" />
  <link rel="stylesheet" href="./../../static/admin/lib/editmd/css/editormd.css" />

  <!--     <link rel="icon" href="../../../../favicon.ico"> -->

  <title>动漫管理</title>

  <!-- Bootstrap core CS
    S -->
  <link href="./../../static/admin/css/bootstrap.min.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="./../../static/admin/css/dashboard.css" rel="stylesheet">
</head>

<body>
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
  <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">admin</a>
  <ul class="navbar-nav px-3">
    <li class="nav-item text-nowrap">
      <a class="nav-link" href="#">Sign out</a>
    </li>
  </ul>
</nav>

<div class="container-fluid">
  <div class="row">
    <nav class="col-md-2 d-none d-md-block bg-light sidebar">
      <div class="sidebar-sticky">
        <ul class="nav flex-column">
          <li class="nav-item">
            <a class="nav-link" href="admin-index.html">
              <span data-feather="home"></span>
              主页 <span class="sr-only">(current)</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-user.html">
              <span data-feather="file"></span>
              个人管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-category.html">
              <span data-feather="file"></span>
              类别管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-label.html">
              <span data-feather="file"></span>
              标签管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-blog.html">
              <span data-feather="file"></span>
              博客管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-announcement.html">
              <span data-feather="file"></span>
              公告管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-animation.html">
              <span data-feather="file"></span>
              动漫管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-carte.html">
              <span data-feather="file"></span>
              名片管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-comment.html">
              <span data-feather="file"></span>
              评论管理
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" href="admin-message.html">
              <span data-feather="file"></span>
              消息管理
            </a>
          </li>
        </ul>
      </div>
    </nav>

    <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
      <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <h1 class="h2">动漫更改</h1>
      </div>
      <form action="#" method="get">
        <p><button type="button" class="btn btn-lg btn-light">返回列表</button>&nbsp;&nbsp;<button class="btn btn-lg btn-dark" type="submit">提交博客</button></p>
        <div class="col-md-12">
          <div class="form-group">
            <label for="exampleFormControlInput1">动漫标题</label>
            <input type="text" class="form-control" id="exampleFormControlInput1" required name="blogtitle">
          </div>
          <div class="form-group">
            <label for="exampleFormControlTextarea1">动漫概述</label>
            <textarea class="form-control" id="exampleFormControlTextarea1" rows="3" required name="bloggaishu"></textarea>
          </div>
          <div id="layout">
            <h5 style="margin-top: 20px">动漫内容</h5>
            <div id="test-editormd">
                  <textarea style="display:none;">

[TOC]
#### Disabled options

- TeX (Based on KaTeX);
- Emoji;
- Task lists;
- HTML tags decode;
- Flowchart and Sequence Diagram;

#### Editor.md directory

    editor.md/
            lib/
            css/
            scss/
            tests/
            fonts/
            images/
            plugins/
            examples/
            languages/
            editormd.js
            ...

```html
&lt;!-- English --&gt;
&lt;script src="../dist/js/languages/en.js"&gt;&lt;/script&gt;

&lt;!-- 繁體中文 --&gt;
&lt;script src="../dist/js/languages/zh-tw.js"&gt;&lt;/script&gt;
```
                  </textarea>
            </div>
          </div>
        </div>
      </form>
    </main>
  </div>
</div>


<script src="./../../static/admin/js/jquery-3.3.1.slim.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-slim.min.js"><\/script>')</script>
<script src="./../../static/admin/js/popper.min.js"></script>
<script src="./../../static/admin/js/bootstrap.min.js"></script>
<script src="./../../static/admin/js/feather.min.js"></script>
<script>
  feather.replace()
</script>
<script src="./../../static/admin/lib/editmd/jquery.min.js"></script>
<script src="./../../static/admin/lib/editmd/editormd.js"></script>
<script type="text/javascript">
  var testEditor;

  $(function() {
    testEditor = editormd("test-editormd", {
      width   : "100%",
      height  : 740,
      //syncScrolling : "single",
      path    : "lib/editmd/",
      //theme : "dark", //设置主题
      //previewTheme : "dark",
      //editorTheme : "pastel-on-dark",
      //markdown : md,
      toolbarIcons : function() { //工具栏设置
        var full = editormd.toolbarModes["full"];
        for (i = 0; i < full.length; i++){
          //去除工具栏的全屏功能
          if(full[i] === "fullscreen"){
            full.splice(i, 1);
          }
          //去除工具栏的表情符
          if(full[i] === "emoji"){
            full.splice(i, 1);
          }
          //去除工具栏的HTML实体符号
          if(full[i] === "html-entities"){
            full.splice(i, 1);
          }
          //去除工具栏的帮助功能
          if(full[i] === "help"){
            full.splice(i, 1);
          }
        }
        return full; // full, simple, mini
      },
      codeFold : true,
      //syncScrolling : false,
      saveHTMLToTextarea : true,    // 保存 HTML 到 Textarea
      searchReplace : true,
      //watch : false,                // 关闭实时预览
      htmlDecode : "style,script,iframe|on*",            // 开启 HTML 标签解析，为了安全性，默认不开启
      //toolbar  : false,             //关闭工具栏
      //previewCodeHighlight : false, // 关闭预览 HTML 的代码块高亮，默认开启
      emoji : true,
      taskList : true,
      tocm            : true,         // Using [TOCM]
      tex : true,                   // 开启科学公式TeX语言支持，默认关闭
      flowChart : true,             // 开启流程图支持，默认关闭
      sequenceDiagram : true,       // 开启时序/序列图支持，默认关闭,
      //dialogLockScreen : false,   // 设置弹出层对话框不锁屏，全局通用，默认为true
      //dialogShowMask : false,     // 设置弹出层对话框显示透明遮罩层，全局通用，默认为true
      //dialogDraggable : false,    // 设置弹出层对话框不可拖动，全局通用，默认为true
      //dialogMaskOpacity : 0.4,    // 设置透明遮罩层的透明度，全局通用，默认值为0.1
      //dialogMaskBgColor : "#000", // 设置透明遮罩层的背景颜色，全局通用，默认为#fff
      //imageUpload : false,        //图片上传功能
      //imageFormats : ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
      //imageUploadURL : "./php/upload.php",
      onload : function() {
        console.log('onload', this);
      }
    });

  });
</script>
</body>
</html>
